<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
    <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
    <script src="{$Think.config.httpFlag}{$Think.config.google_map_url}" async="async"></script>
    <style>
        .box{
            margin-top:20px;
            margin-bottom:10px;
        }
        #productPricing{
            width: 800px;
        }
        #productPricing tbody tr{
            background: #fff;
        }
        #productPricing tr th,td{
            text-align:center
        }
    </style>
</head>
<body>

<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <!--行程核价参考-->
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <h2>行程核价参考</h2>
                </div>
                <div class="layui-card-body">
                    <div class="box">
                        <div>
                            <form class="layui-form" action="">
                                <input type="hidden" name="id" value="{$_GET['id']}">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">产品名称</label>
                                    <div class="layui-input-inline" style="width: 600px">
                                        <input readonly {notempty name="$product.name"}value="{$product.name}"{/notempty} class="layui-input" type="text">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">包车类型</label>
                                    <div class="layui-input-inline" style="width: 300px">
                                        <select name="carType" class="layui-select" lay-filter="carType" lay-search>
                                            {volist name='carTypeList' id='value' key='key'}
                                            <option value="{$key-1}" {if $carType==$key-1}selected{/if}>{$value}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">&nbsp;</label>
                                    <div class="layui-input-inline" style="width: 300px">
                                        <button class="layui-btn layui-btn-sm layui-btn-info">查询</button>
                                    </div>
                                </div>
                            </form>
                                <table class="layui-table" lay-even="" lay-skin="line" id="productPricing">
                                <colgroup>
                                    <col width="200">
                                    <col width="200">
                                    <col width="200">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th rowspan="2">天数</th>
                                    <th colspan="3">用车信息</th>
                                </tr>
                                <tr>
                                    <th width="200">用车类型</th>
                                    <th width="200">总费用</th>
                                    <th width="200">费用说明</th>
                                </tr>
                                </thead>
                                <tbody>
                                    {volist name='$priceTable' id='value'}
                                    {if count($value['detail'])>1 && $rowspan = count($value['detail'])}
                                    <tr>
                                        <td rowspan="{$rowspan}">{$value['displayString']}</td>
                                        <td>{$value['detail'][0]['displayString']}</td>
                                        <td>¥ {$value['detail'][0]['totalAmount']}</td>
                                        <td>
                                            {notempty name='$value["detail"][0]["extra"]["overtimeFee"]'}超时费：¥ {$value["detail"][0]["extra"]["overtimeFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["hotelFee"]'}司导酒店费用：¥ {$value["detail"][0]["extra"]["hotelFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["dinnerFee"]'}餐补：¥ {$value["detail"][0]["extra"]["dinnerFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["oilFee"]'}油费：¥ {$value["detail"][0]["extra"]["oilFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["parkingFee"]'}停车费：¥ {$value["detail"][0]["extra"]["parkingFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["nightFee"]'}夜间服务费：¥ {$value["detail"][0]["extra"]["nightFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["assistanceFee"]'}陪护费用，导游费用：¥ {$value["detail"][0]["extra"]["assistanceFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["childSeatFee"]'}儿童座椅：¥ {$value["detail"][0]["extra"]["childSeatFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["exceedKMFee"]'}超出基础里程费用：¥ {$value["detail"][0]["extra"]["exceedKMFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["distance"]'}距离：{$value["detail"][0]["distance"]>1000?(intval($value["detail"][0]["distance"]*1000/1000)/1000).'km':$value["detail"][0]["distance"].'m'}<br>{/notempty}
                                            {notempty name='$value["detail"][0]["duration"]'}时间：{$value["detail"][0]["duration"]>3600?(intval($value["detail"][0]["duration"]*100/3600)/100).'小时':(intval($value["detail"][0]["duration"]*100/60)/100).'分钟'}{/notempty}
                                        </td>
                                    </tr>
                                    {volist name='value["detail"]' id='v' key='k'}
                                    {if $k>1}
                                    <tr>
                                        <td>{$v['displayString']}</td>
                                        <td>¥ {$v['totalAmount']}</td>
                                        <td>
                                            {notempty name='$v["extra"]["overtimeFee"]'}超时费：¥ {$v["extra"]["overtimeFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["hotelFee"]'}司导酒店费用：¥ {$v["extra"]["hotelFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["dinnerFee"]'}餐补：¥ {$v["extra"]["dinnerFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["oilFee"]'}油费：¥ {$v["extra"]["oilFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["parkingFee"]'}停车费：¥ {$v["extra"]["parkingFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["nightFee"]'}夜间服务费：¥ {$v["extra"]["nightFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["assistanceFee"]'}陪护费用，导游费用：¥ {$v["extra"]["assistanceFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["childSeatFee"]'}儿童座椅：¥ {$v["extra"]["childSeatFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["extra"]["exceedKMFee"]'}超出基础里程费用：¥ {$v["extra"]["exceedKMFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$v["distance"]'}距离：{$v["distance"]>1000?(intval($v["distance"]*1000/1000)/1000).'km':$v["distance"].'m'}<br>{/notempty}
                                            {notempty name='$v["duration"]'}时间：{$v["duration"]>3600?(intval($v["duration"]*100/3600)/100).'小时':(intval($v["duration"]*100/60)/100).'分钟'}{/notempty}
                                        </td>
                                    </tr>
                                    {/if}
                                    {/volist}
                                    {elseif count($value['detail'])==1}
                                    <tr>
                                        <td>{$value['displayString']}</td>
                                        <td>{$value['detail'][0]['displayString']}</td>
                                        <td>¥ {$value['detail'][0]['totalAmount']}</td>
                                        <td>
                                            {notempty name='$value["detail"][0]["extra"]["overtimeFee"]'}超时费：¥ {$value["detail"][0]["extra"]["overtimeFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["hotelFee"]'}司导酒店费用：¥ {$value["detail"][0]["extra"]["hotelFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["dinnerFee"]'}餐补：¥ {$value["detail"][0]["extra"]["dinnerFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["oilFee"]'}油费：¥ {$value["detail"][0]["extra"]["oilFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["parkingFee"]'}停车费：¥ {$value["detail"][0]["extra"]["parkingFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["nightFee"]'}夜间服务费：¥ {$value["detail"][0]["extra"]["nightFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["assistanceFee"]'}陪护费用，导游费用：¥ {$value["detail"][0]["extra"]["assistanceFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["childSeatFee"]'}儿童座椅：¥ {$value["detail"][0]["extra"]["childSeatFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["extra"]["exceedKMFee"]'}超出基础里程费用：¥ {$value["detail"][0]["extra"]["exceedKMFee"]}<br style='mso-data-placement:same-cell;'/> {/notempty}
                                            {notempty name='$value["detail"][0]["distance"]'}距离：{$value["detail"][0]["distance"]>1000?(intval($value["detail"][0]["distance"]*1000/1000)/1000).'km':$value["detail"][0]["distance"].'m'}<br>{/notempty}
                                            {notempty name='$value["detail"][0]["duration"]'}时间：{$value["detail"][0]["duration"]>3600?(intval($value["detail"][0]["duration"]*100/3600)/100).'小时':(intval($value["detail"][0]["duration"]*100/60)/100).'分钟'}{/notempty}
                                        </td>
                                    </tr>
                                    {/if}
                                    {/volist}
                                    <tr style="background: #00a65a;color:#fff">
                                        <td>总计</td>
                                        <td></td>
                                        <td>¥ {$totalPrice}</td>
                                        <td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="__PUBLIC__/layui/layui.js"></script>
<script src="__PUBLIC__/jquery/jquery.min.js"></script>
<script>
    layui.use(['element','layer', 'form'], function() {
        var layer = layui.layer,
            element = layui.element,
            $ = layui.jquery,
            form = layui.form;
    })
</script>
</body>
</html>